package com.opages.mvc.adapter.consul.model;

import com.ecwid.consul.v1.ConsulClient;

import java.util.ArrayList;
import java.util.List;

/**
 * consul集群
 * @author daizhong.liu
 * @create 2020-07-10 14:12
 **/
public class ClusterConsulClient {

    private List<ConsulClient> clients;

    public void addConsulClient(ConsulClient client) {
        if(clients == null) {
            clients = new ArrayList<>();
        }
        clients.add(client);
    }

    public List<ConsulClient> getClients() {
        return clients;
    }

    public void setClients(List<ConsulClient> clients) {
        this.clients = clients;
    }
}
